package com.gzc.pm.dao
{
	import com.gzc.pm.bean.CPLRouteBean;
	import com.gzc.pm.net.MyRoFactory;

	public class CplRouteDao
	{
		public function CplRouteDao()
		{
		}
		
		public function getByAxleIds(axleIds:String, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('cplRouteRo', resultHandler, '加载工艺路线', 'getByAxleIds', axleIds);
		}
		
		public function insert(bean:CPLRouteBean, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('cplRouteRo', resultHandler, '添加工艺路线', 'insert', bean);
		}
		
		public function update(bean:CPLRouteBean, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('cplRouteRo', resultHandler, '更新工艺路线', 'update', bean);
		}
		
		public function deleteById(id:int, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('cplRouteRo', resultHandler, '删除工艺路线', 'deleteById', id);
		}
		
	}
}